package cn.contact.service;

import cn.contact.dao.ContactMapper;
import cn.contact.pojo.Contact;
import org.springframework.stereotype.Service;


import javax.annotation.Resource;
import java.util.List;

@Service
public class ContactServiceImpl implements  ContactService{


    @Resource
    private ContactMapper cm;

    @Override
    public List getcontact(String cname) {
        return cm.getcontact(cname);
    }

    @Override
    public int add(Contact c) {
        return cm.add(c);
    }

    @Override
    public Contact getid(Integer id) {
        return cm.getid(id);
    }

    @Override
    public int update(Contact c) {
        return cm.update(c);
    }
}
